package com.mz.ozy.activity.login;

import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;


import com.mz.ozy.R;
import com.mz.ozy.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 隐私政策
 */
public class PrivacyPolicyActivity extends BaseActivity {
    @BindView(R.id.webView)
    WebView mWebView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_privacy_policy);
        ButterKnife.bind(this);
        initTitle();
        tvTitle.setText(R.string.privacy_policy);
        mWebView.loadUrl("http://www.baidu.com");
        mWebView.setWebViewClient(new WebViewClient(){
            @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                mWebView.loadUrl(url);
                return super.shouldOverrideUrlLoading(view, url);
            }
        });
    }
}
